#region Microsoft Public License
/*
 * (c) Copyright Chenjun Wu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Media;

namespace UTable.Objects
{
    public class ObjectCreateParameter
    {
        private Type _objectType;
        private Type _layoutPolicyType;
        private Type _authorizationPolicyType;
        private Type _conflictResolvePolicyType;

        public ObjectCreateParameter(Type objectType)
        {
            _objectType = objectType;
        }

        public ObjectCreateParameter(Type objectType, Type layoutPolicyType, Type authorizationPolicyType, Type conflictResolvePolicyType)
        {
            _objectType = objectType;
            _layoutPolicyType = layoutPolicyType;
            _authorizationPolicyType = authorizationPolicyType;
            _conflictResolvePolicyType = conflictResolvePolicyType;
        }

        public Type ObjectType 
        {
            get { return _objectType; }
        }

        public Type OverrideLayoutPolicyType
        {
            get { return _layoutPolicyType; }
        }
        public Type OverrideAuthorizationPolicyType
        {
            get { return _authorizationPolicyType; }
        }
        public Type OverrideConflictResolvePolicyType
        {
            get { return _conflictResolvePolicyType; }
        }
    }
}
